
<style>
    *{margin:0;padding:0;}
    li{list-style:none;}
    .item{margin:20px;}
    .item ul li{float:left;margin-right:20px;}
    .item ul li img{cursor:pointer;}
    .lb_wrap{display:none;}
    .lightbox_bg{background:#000;filter:alpha(opacity=70);opacity:.7;position:absolute;left:0;top:0%;width:100%;height:100%;z-index:1;}
    .lightbox{position:absolute;left:0;top:50%;width:100%;z-index:2;text-align:center;}
    .lightbox p{position:absolute;height:61px;width:38px;top:50%;left:0;z-index:2;background:transparent url(/assets/img/themes.png) no-repeat left top;margin-top:-30.5px;cursor:pointer;}
    .lightbox p.next{left:auto;background-position:right top;right:0;}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('客服上传截图')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[kf_images]" type="text" value="{$row.kf_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    {eq name="row['status']" value="4"}
        <!-- 审核中的商品可以操作审核成功即上架，审核不通过 -->
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('操作')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[status]', ['1'=>__('审核通过'), '3'=>__('审核失败')], $row['status'])}
            </div>
        </div>
        {else /}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:Form::radios('row[status]', ['1'=>__('审核通过'),'2'=>__('下架') ,'5'=>__('平台下架'),'3'=>__('审核失败')],$row['status'],['disabled'=>"disabled"])}
            </div>
        </div>
    {/eq}
    {eq name="row['status']" value="1"}
        <!-- 上架的商品可以操作平台下架 -->
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('操作')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[status]', ['5'=>__('平台下架')], $row['status'])}
            </div>
        </div>
    {/eq}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('原因')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-reason" class="form-control " rows="5" name="row[reason]" cols="50">{$row.reason|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

